/* C.Panic - Collapse in a heap, with an error message */

#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include "utils.h"

/* Return code -1 is used, as this will give an OS error "Return code
 * too large", which is reported back to the user from the supervisor.
 */

void panic (const char *format, ...)
{
        va_list ap;
        va_start(ap,format);
        vfprintf(stderr,format,ap);
        va_end(ap);
        exit(-1);
}
